﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  获取店铺商品列表
    /// </summary>
    public class InputStoreGoodList
    {
        /// <summary>
        ///  店铺Path
        /// </summary>
        [Required(ErrorMessage = "folderPath：店铺Path不能为空！")]
        public string folderPath { get; set; }
        /// <summary>
        ///  状态 【1=待上架；4=已下架；5=已上架；】
        /// </summary>
        [Required]
        [RegularExpression("^([1,4,5])$", ErrorMessage = "请正确输入状态：1=待上架；4=已下架；5=已上架；")]
        public int fileStatus { get; set; }  
        /// <summary>
        ///  第几页
        /// </summary>
        [Required]
        public int page { get; set; } = 1;
        /// <summary>
        ///  每页数量
        /// </summary>
        [Required]
        public int rows { get; set; } = 10;
        /// <summary>
        ///  关键字【模糊匹配商品名称和商品简介】
        /// </summary>
        public string keyword { get; set; }
        /// <summary>
        ///  排序【3=修改时间降序；4=创建时间降序；5=序号降序；6=序号升序；】默认3
        /// </summary>
        [RegularExpression("^([3,4,5,6])$", ErrorMessage = "请正确输入排序值")]
        public int priceOrder { get; set; } = 3;
    }
}